package fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype;
import java.io.Serializable;

import java.lang.Integer;


/**
 * Structure to identify a location in a building
 *
 * @[134,0]
 * structure Location {
 * room as Integer;
 * floor as Integer;
 * }
 */
public class Location implements Serializable {

    private static final long serialVersionUID = 0;
    public java.lang.Integer room;
    
    public java.lang.Integer getRoom() {
        return room;
    }
    
    public void setRoom(java.lang.Integer newRoomValue) {
        this.room = newRoomValue;
    }
    public java.lang.Integer floor;
    
    public java.lang.Integer getFloor() {
        return floor;
    }
    
    public void setFloor(java.lang.Integer newFloorValue) {
        this.floor = newFloorValue;
    }

    public Location() {
    }
  
    public Location(java.lang.Integer room, java.lang.Integer floor) {
      this.room = room;      
      this.floor = floor;      

    }    
      @Override
      public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((room == null) ? 0 : room.hashCode());
        result = prime * result + ((floor == null) ? 0 : floor.hashCode());

        return result;
      }

      @Override
      public boolean equals(Object obj) {
        if (this == obj)
          return true;
        if (obj == null)
          return false;
        if (getClass() != obj.getClass())
          return false;
        Location other = (Location) obj;
        if (room == null) {
          if (other.room != null)
            return false;
        } else if (!room.equals(other.room))
          return false; 
        if (floor == null) {
          if (other.floor != null)
            return false;
        } else if (!floor.equals(other.floor))
          return false; 

        return true;
      }
      
}